using System;
using System.ComponentModel.Composition;

namespace Vision.AlgBase
{
    /// <summary>
    /// 工具导出元数据特性
    /// </summary>
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
    [MetadataAttribute]
    public class ServiceDataAttribute : ExportAttribute, IServiceData
    {
        #region 构造函数
        public ServiceDataAttribute() : base(typeof(IAlg)) { }
        #endregion 构造函数

        #region 公有属性
        /// <summary>
        /// 指令名称
        /// </summary>
        public string SeriveName
        {
            get { return seriveName; }
            set { seriveName = value; }
        }
        private string seriveName = string.Empty;

        /// <summary>
        /// 指令描述
        /// </summary>
        public string Descri
        {
            get { return descri; }
            set { descri = value; }
        }
        private string descri = string.Empty;
        #endregion 公有属性
    }
}
